package helper;

import java.util.Comparator;

import model.Person;

public class ArrayComparator implements Comparator<Person>{

	@Override
	public int compare(Person p1, Person p2) {
		
		return p1.getY()-p2.getY();
	}

}
